<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title>demo</title>
	</head>
	<body>
		<script type="text/javascript" >
			
			
			/* function VueComponent(){
				console.log('.......')
			}
			
			//每次调用extend函数，返回的都是同一个VueComponent
			function extend (){
				 return VueComponent
			}

			const a = extend()
			const b = extend()

			console.log(a === b) */


			/* ******************************************************************************* */
			
			//每次调用extend函数，返回的都是同一个VueComponent
			function extend (){
				 return function VueComponent(){
						console.log('.......')
				 }
			}

			const a = extend()
			const b = extend()

			console.log(a === b)

		</script>
	</body>
</html>